{% extends "blogs/admin/base_blog.html" %}

{% block current_action %}Manage banned IPs{% endblock %}

{% block content %}
    
    {% if ips %}
        <p>Here are the banned IPs for this blog. You can unban an IP by clicking the 'x' next to it.</p>
        <form action="delete/" method="post">
            <table>
                {% for ip in ips %}
                    <tr>
                        <th>{{ ip.ip }}</th>
                        <td><a href="{% url blogs.admin.unban_ip blog_slug %}?ip={{ ip.ip }}" title="Unban this IP"><img src="{{ ADMIN_MEDIA_PREFIX }}img/admin/icon_deletelink.gif" alt="x" /></a></td>

                    </tr>
                {% endfor %}
            </table><br />
        </form>
    {% else %}

        <p>There are no banned IPs for this blog.</p>
    
    {% endif %}

{% endblock %}